var exp = require('express')
var template = require('art-template')
var cookie = require('cookie-parser')
var bodyParser = require('body-parser')
var app = exp()

// app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ limit: '50mb',extended: true }));

app.use(exp.static('public'))

app.engine('.html',require('express-art-template'))
app.set('view engine','html')
app.set('views','./views')
template.defaults.extname = '.html'

app.use(cookie())

app.use(require('./router/page'))
app.use('/user',require('./router/user'))


app.listen(4000,()=>{
    console.log('ok');
})